/*
 * @Descripttion:
 * @version: 1.0
 * @Author: zzq
 * @Date: 2020-09-25 09:40:11
 */
const path = require("path");
const fs = require("fs");
const targetPath = "http://200.100.100.210/";

module.exports = {
	devServer: {
		open: true,
		hot: true,
		hotOnly: true, // 热更
		disableHostCheck: true,
		headers: {
			"Access-Control-Allow-Origin": "*",
		},
		proxy: {
			"/api": {
				target: "http://127.0.0.1:3000",  //目标
				changeOrigin: true,
        pathRewrite: {"^/api" : ""},   //省略api
			},
			"": {
				target: "http://172.16.8.2:8080", // 辉
				changeOrigin: true, //代理时保留原主机头
        secure:false  //接收在HTTPS上运行且证书无效的后端服务器
			},		
		},
	},
};
